/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

/**
 * 驿站站点管理-驿站管理
 */
import React, { useState } from 'react';
import { PageContainer } from '@ant-design/pro-layout';
import { Tabs } from 'antd';
import YzManageTable from '@/components/_pages/yz/manage/';

const VehicleCallRegister: React.FC = () => {
  const [activeKey, setActiveKey] = useState<string>('siteSearch');
  const tabList = [
    {
      tab: '驿站查询',
      key: 'siteSearch',
    },
    {
      tab: '编码查询',
      key: 'codeSearch',
    },
    {
      tab: '被关闭驿站',
      key: 'closeSite',
    },
    {
      tab: '已拒绝驿站',
      key: 'rejected',
    },
  ];

  return (
    <PageContainer>
      <Tabs onChange={setActiveKey}>
        {tabList.map((item) => (
          <Tabs.TabPane tab={item.tab} key={item.key}>
            <YzManageTable type={item.key} activeKey={activeKey} />
          </Tabs.TabPane>
        ))}
      </Tabs>
    </PageContainer>
  );
};

export default VehicleCallRegister;
